table of contents
STAFCTL(1) | STAFCTL(1) |
NAME¶
stafctl - STorage Appliance Finder (STAF) utility program
SYNOPSIS¶
stafctl [OPTIONS...] {COMMAND} [OPTIONS...]
DESCRIPTION¶
stafctl is a tool that can be used to communicate with the stafd(8) daemon to retrieve operational data.
COMMANDS¶
The following commands are understood:
tron
troff
status
ls
dlp
adlp
OPTIONS¶
The following options are understood:
-h, --help
--version
-d, --detailed
-tTRTYPE, --transport=TRTYPE
-aTRADDR, --traddr=TRADDR
-sTRSVCID, --trsvcid=TRSVCID
-wTRADDR, --host-traddr=TRADDR
-fIFACE, --host-iface=IFACE
-nNQN, --nqn=NQN
This field is mandatory for I/O Controllers, but is optional for Discovery Controllers (DC). For the latter, the NQN will default to the well-known DC NQN: nqn.2014-08.org.nvmexpress.discovery if left undefined.
VALUES¶
TRTYPE
TRADDR
TRSVCID
IFACE
NQN
EXIT STATUS¶
On success, 0 is returned; otherwise, a non-zero failure code is returned.
EXAMPLES¶
Example 1. List all the discovery controllers
$ stafctl ls [{'device': 'nvme0',
'host-iface': '',
'host-traddr': '',
'subsysnqn': 'nqn.2014-08.org.nvmexpress.discovery',
'traddr': '::1',
'transport': 'tcp',
'trsvcid': '8009'}]
Example 2. Enable tracing
$ stafctl tron
Example 3. Show discovery log pages from a specific discovery controller
$ stafctl dlp --transport tcp --traddr ::1 --trsvcid 8009 [{'adrfam': 'ipv6',
'asqsz': '32',
'cntlid': '65535',
'portid': '1',
'subnqn': 'nqn.1988-11.com.dell:PowerSANxxx:01:20210225100113-454f73093ceb4847a7bdfc6e34ae8e28',
'subtype': 'nvme',
'traddr': '::1',
'treq': 'disable sqflow',
'trsvcid': '8009',
'trtype': 'tcp'},
{'adrfam': 'ipv6',
'asqsz': '32',
'cntlid': '65535',
'portid': '1',
'subnqn': 'nqn.1988-11.com.dell:PowerSANxxx:01:20210225100113-454f73093ceb4847a7bdfc6e34aedead',
'subtype': 'nvme',
'traddr': '::1',
'treq': 'disable sqflow',
'trsvcid': '8009',
'trtype': 'tcp'},
{'adrfam': 'ipv6',
'asqsz': '32',
'cntlid': '65535',
'portid': '1',
'subnqn': 'nqn.1988-11.com.dell:PowerSANxxx:01:20210225100113-454f73093ceb4847a7bdfc6e34aebeef',
'subtype': 'nvme',
'traddr': '::1',
'treq': 'disable sqflow',
'trsvcid': '8009',
'trtype': 'tcp'}]
SEE ALSO¶
nvme-stas 2.2.1 |